<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<!--表单-->
<form action="https://blog.csdn.net/wlddhj/article/details/131482951">
    <!--type name value placeholder min maxlength-->
    用户名：<br><input type="text" name="username" value="admin"><br>

    密码：<br><input type="password" name="password" placeholder="密码长度不小于六位不大于八位" maxlength="8"
                    minlength="6"><br>
    <!--name标签改变传入值等号左边，value改变等号右边，name值相等时，radio变为单选-->
    性别：<input id="r1" type="radio" name="xb" value="m" checked><label for="r1">男</label>
    <!--label配合id实现点击男女汉字实现选择的效果-->
    <input id="r2" type="radio" name="xb" value="w"><label for="r2">女</label><br>

    爱好：<input type="checkbox" name="hobby" value="chinese" checked>汉语
    <input type="checkbox" name="hobby" value="food">美食
    <input type="checkbox" name="hobby" value="sleep">睡觉<br>

    照片：<input type="file" name="photo"><br>

    出生日期：<input type="date" name="birthday"><br>

    所在地：
    <select name="city" id="">
        <option value="bj">北京</option>
        <option value="sh">上海</option>
        <option value="gz">广州</option>
        <option value="sz">深圳</option>
        <option value="sd" selected>山东</option>
    </select><br>

    <input type="submit" value="注册">
    <input type="reset">
    <input type="button" value="自定义">
    <hr>
    <button type="submit">注册1</button>
    <button type="reset">更新</button>
    <button type="button">自定义1</button>
</form>

</body>
</html>